target: dll

include $(SOURCE_HOME)/makeconf

OBJ_PATH	= .
LIB_OUTPUT	= ../../bin/MenuModule.so

LIBLINK	= -L$(LIB_OUTPUT_PATH) -lwebx -lhttp -lweb.dbentity -ldbx.base -lzlib -lstdx -lclib -ljson $(LIB_OPENSSL) $(PLATFORMLINK)
INCPATH	= -I$(LIBRARY_PATH) $(INC_OPENSSL) -I. -I./inc  -I$(SOURCE_HOME)/webapp/cpp/lib

$(OBJ_PATH)/%.o:%.c
	$(CPP) -DXG_DLL $(INCPATH) -c -o $@ $<

$(OBJ_PATH)/%.o:%.cpp
	$(CPP) -DXG_DLL $(INCPATH) -c -o $@ $<

dll: MenuModule.o
	$(CPP_DLL) -o $(LIB_OUTPUT) $(OBJ_PATH)/MenuModule.o $(LIBLINK)

clean:
	@$(DELETEFILE) $(OBJ_PATH)/*.o